require(['./config'],()=>{
    require([ 'template', 'request','jquery'],(tmplate,req)=>{
        class sign{
            constructor(){
                this.init()
                
            }
            init(){
                const str = localStorage.getItem('prodId'),
                        pasword = localStorage.getItem('prodPas')
                $('.dll').click(function(){
                    const va =  $('.unames').val(),
                        pasw = $('.pas').val()
                    if(va ==str && pasw == pasword){
                        window.location.href = '/index.html'
                    }else{
                        alert('账号或密码输入错误')
                    }
                })
            }
            
        }
        return new sign()
    })
})
// $('.zzc').on('click',function(){
//     $('.zzc').load('../html/register.html')
// })
